nth derivative of cos(ax b)